# Get Camunda-run as base image
FROM camunda/camunda-bpm-platform:run-7.16.0

# The Version of the Keycloak Identity Provider to use
ENV IDENTITY_PROVIDER_VERSION=2.2.3

# Add Keycloak Identity Provider
USER camunda
RUN wget https://app.camunda.com/nexus/repository/camunda-bpm-community-extensions/org/camunda/bpm/extension/camunda-bpm-identity-keycloak-run/$IDENTITY_PROVIDER_VERSION/camunda-bpm-identity-keycloak-run-$IDENTITY_PROVIDER_VERSION.jar -P /camunda/configuration/userlib